package com.lvmama.dashboard.model.rop;

public class AjaxResponse<T> {
	private String code = "1";
	private T data;
	private String message = "";
	private String errMessage = "";
	
	public static enum AJAX_RESPONSE_CODE {
		WARNING("2"),
		OK("1"),
		ERROR("-1");
		private String code;
		private AJAX_RESPONSE_CODE(String code) {
			this.code = code;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
	}
	
	public AjaxResponse() {
		
	}
	
	public AjaxResponse(String code, String message, String errMessage) {
		this.code = code;
		this.message = message;
		this.errMessage = errMessage;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getErrMessage() {
		return errMessage;
	}
	public void setErrMessage(String errMessage) {
		this.errMessage = errMessage;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
